import java.util.Scanner;

public class Test {
    private static Main mainF = new Main();

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true){
            System.out.println("请选择功能1、A顾客买水果,2、B顾客买水果,3、B顾客买水果,4、B顾客买水果");
            int num = sc.nextInt();
            if (num==1){
                System.out.println("请输入购买的苹果斤数:");
                int apple = sc.nextInt();
                System.out.println("请输入购买的草莓斤数:");
                int strawberry = sc.nextInt();
                mainF.custmerA(apple,strawberry);
            }else if(num==2){
                System.out.println("请输入购买的苹果斤数:");
                int apple = sc.nextInt();
                System.out.println("请输入购买的草莓斤数:");
                int strawberry = sc.nextInt();
                System.out.println("请输入购买的芒果斤数:");
                int mango = sc.nextInt();
                mainF.custmerB(apple,strawberry,mango);
            }else if(num==3){
                System.out.println("请输入购买的苹果斤数:");
                int apple = sc.nextInt();
                System.out.println("请输入购买的草莓斤数:");
                int strawberry = sc.nextInt();
                System.out.println("请输入购买的芒果斤数:");
                int mango = sc.nextInt();
                mainF.custmerC(apple,strawberry,mango);
            }else if(num==4){
                System.out.println("请输入购买的苹果斤数:");
                int apple = sc.nextInt();
                System.out.println("请输入购买的草莓斤数:");
                int strawberry = sc.nextInt();
                System.out.println("请输入购买的芒果斤数:");
                int mango = sc.nextInt();
                mainF.custmerD(apple,strawberry,mango);
            }
        }
    }
}
